package com.sanxiau.dormitory.yang.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class MD5Util {

	public static String getPasswordByMD5(String password, String salt) {
		String simpleHash = new SimpleHash("MD5", password, salt, 1024).toString();
		return simpleHash;
	}

	public static void main(String[] args) {
		System.out.println(MD5Util.getPasswordByMD5("123456","201706024110"));
	}
}
